import request from '@/sheep/request';

export default {
	notification: (data) =>
		request({
			url: 'api/notification/index',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
			},
		}),
	notification_del: (data) =>
		request({
			url: 'api/notification/del',
			method: 'GET',
			data,
			custom: {
				loadingMsg: true,
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
	notification_view: (data) =>
		request({
			url: 'api/notification/view',
			method: 'GET',
			data,
			custom: {
				loadingMsg: true,
				
			},
		}),
	notification_add: (data) =>
		request({
			url: 'api/notification/add',
			method: 'POST',
			data,
			custom: {
				loadingMsg: true,
				showLoading: true,
				loadingMsg: '加载中',
				showError: true,
				showSuccess: true,
				errorMsg: '',
				auth: true,
				successMsg: false,
			},
		}),
		policyreport: (data) =>
			request({
				url: '/api/policyreport/index',
				method: 'POST',
				data,
				custom: {
					loadingMsg: true,
				},
			}),
		policyreport_del: (data) =>
			request({
				url: 'api/policyreport/del',
				method: 'GET',
				data,
				custom: {
					loadingMsg: true,
					showLoading: true,
					loadingMsg: '加载中',
					showError: true,
					showSuccess: true,
					errorMsg: '',
					auth: true,
					successMsg: false,
				},
			}),
		policyreport_view: (data) =>
			request({
				url: 'api/policyreport/view',
				method: 'GET',
				data,
				custom: {
					loadingMsg: true,
					
				},
			}),
		policyreport_add: (data) =>
			request({
				url: 'api/policyreport/add',
				method: 'POST',
				data,
				custom: {
					loadingMsg: true,
					showLoading: true,
					loadingMsg: '加载中',
					showError: true,
					showSuccess: true,
					errorMsg: '',
					auth: true,
					successMsg: false,
				},
			}),
		policy: (data) =>
			request({
				url: '/api/policyreport/index',
				method: 'GET',
				data,
				custom: {
					loadingMsg: true,
					showLoading: true,
					loadingMsg: '加载中',
					
				},
			}),
		purchase: (data) =>
			request({
				url: '/api/purchase/index',
				method: 'GET',
				data,
				custom: {
					loadingMsg: true,
					showLoading: true,
					loadingMsg: '加载中',
					
				},
			}),
};